messages = {
	{
		define = "struct", name = "PlayerInfo",
		attributes =
		{
			{type="int32", name="pid", default = 1},
			{type="string", name="name"},
			{type="int8", name="sex", default = 0},
			{type="int16", name="hid", default = 0},
			{type="int8", name="headpic", default = 0},
			{type="int16", name="lvl", default = 1},
			{type="int16", name="elvl", default = 0},
			{type="int8", name="cid", default = 0},
			{type="int8", name="did", default = 0},
		}
	},
	{
		define = "struct", name = "SvrInfo",
		attributes =
		{
			{type="int8", name="svrid", default = 1},
			{type="string", name="name"},
			{type="int8", name="state", default = 0},
		}
	},
	{
		define = "msg", name="LoginRequest", category = "10", id = "5", base = "MsgBase",
		 attributes =
		 {
			 {type="int64", name = "authid"},
		 }
	},
	{
		define = "msg", name="LoginResponse", category = "10", id = "6", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode", default = "ERR_FAILED"},
			 {type="PlayerInfo", name = "playerlist", list = true},
		 }
	},
	{
		define = "msg", name="EnterGameRequest", category = "10", id = "7", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
		 }
	},
	{
		define = "msg", name="EnterGameResponse", category = "10", id = "8", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode", default = "ERR_FAILED"},
		 }
	},
	{
		define = "msg", name="CreatePlayerRequest", category = "10", id = "9", base = "MsgBase",
		 attributes =
		 {
			 {type="string", name = "name"},
			 {type="int8", name = "sex"},
			 {type="int16", name = "hero"},
			 {type="int8", name = "headpic"},
			 {type="int8", name = "cid"},
			 {type="int8", name = "reserve"},
		 }
	},
	{
		define = "msg", name="CreatePlayerResponse", category = "10", id = "10", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode", default = "ERR_FAILED"},
			 {type="int32", name = "pid"},
			 {type="int8", name="did", default = 0},
		 }
	},
	{
		define = "msg", name="DeletePlayerRequest", category = "10", id = "11", base = "MsgBase",
		 attributes =
		 {
			 {type="int32", name = "pid"},
		 }
	},
	{
		define = "msg", name="DeletePlayerResponse", category = "10", id = "12", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode", default = "ERR_FAILED"},
			 {type="int32", name = "pid"},
		 }
	},

	{
		define = "msg", name="AuthRequest", category = "10", id = "1", base = "MsgBase",
		 attributes =
		 {
			 {type="string", name = "name"},
			 {type="string", name = "pwd"},
		 }
	},
	{
		define = "msg", name="AuthResponse", category = "10", id = "2", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "errcode", default = "ERR_FAILED"},
			 {type="int64", name = "authid"},
			 {type="SvrInfo", name = "svrlist", list = true},
		 }
	},

	{
		define = "msg", name="SelectSvrRequest", category = "10", id = "3", base = "MsgBase",
		 attributes =
		 {
			 {type="int8", name = "svrid"},
		 }
	},
	{
		define = "msg", name="SelectSvrResponse", category = "10", id = "4", base = "MsgBase",
		 attributes =
		 {
			 {type="string", name = "ip"},
		 }
	},
}

